package com.guigu.pd.serviceapi.authfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lizongyi
 * @date 2022/7/22
 * @Note
 */
@FeignClient(value="pd-auth",path = "/auth/coreorg")
public interface CoreOrgFeign {


    @GetMapping("/getcornamebyid/{id}")
    public String getcornamebyid(@PathVariable("id") String id);

    @RequestMapping("/getcoreorgbyId/{id}")
    //@RequiresPermissions("auth:coreorg:info")
    public String getcoreorgbyId(@PathVariable("id")String id);


    //根据区县id 和 机构级别4 找到符合要求的机构id
    @GetMapping("/chazhaofhid/{dljwd}/{qxid}")
    public String chazhaofhid(@PathVariable("dljwd") String dljwd,@PathVariable("qxid") String qxid);


    //获取网点的上级转运中心
    //根据网点id获取他的上级id（pid）
    @GetMapping("/getpidbyid/{id}")
    public Long getpidbyid(@PathVariable("id") String id);
}
